cask 'fiscript' do
  version '1.0.1'
  sha256 'a622526479338a151c42f57b04717902555b33aad06abba249c8a4bb0554a0ed'

  url "https://github.com/Mortennn/FiScript/releases/download/v#{version}/FiScript.zip"
  appcast 'https://github.com/Mortennn/FiScript/releases.atom'
  name 'FiScript'
  homepage 'https://github.com/Mortennn/FiScript'

  depends_on macos: '>= :sierra'

  app 'FiScript.app'

  zap trash: [
               '~/Library/Application Scripts/com.Mortennn.FiScript',
               '~/Library/Application Scripts/com.Mortennn.FiScript.Finder-Extension',
               '~/Library/Containers/com.Mortennn.FiScript',
               '~/Library/Containers/com.Mortennn.FiScript.Finder-Extension',
               '~/Library/Group Containers/group.Mortennn.FiScript',
               '~/Library/Group Containers/sharedContainerID.container',
               '~/Library/Group Containers/group.Mortennn.FiScript',
             ]
end
